<template>
  <div>
    <div class="fixHead">
      <div class="title">
        <span class="iconfont icon-jiantou" @click="$router.go(-1)"></span>
        <span class="icon-home" @click="$router.push('/')"></span>
        <h1>社群成员</h1>
        <router-link :to="'/com/invite'" class="rightBtn" v-if="isCreater"
          >邀请</router-link
        >
      </div>
      <div style="height: 0.88rem;"></div>
    </div>
    <div class="member">
      <div class="title">共10人</div>
      <div class="list">
        <van-swipe-cell :disabled="!isCreater">
          <div class="item">
            <img class="head" src="../../assets/images/adver.jpg" />
            <div class="cont">
              <p class="name">麻小云</p>
              <p class="txt">阿里巴巴创始人/慈善会会长/蚂蚁金善会会善会会</p>
            </div>
            <button type="button" class="btnEdit">编辑</button>
          </div>
          <template #right>
            <button type="button" class="del">移除</button>
          </template>
        </van-swipe-cell>
        <van-swipe-cell :disabled="!isCreater">
          <div class="item">
            <img class="head" src="../../assets/images/adver.jpg" />
            <div class="cont">
              <p class="name">麻小云</p>
              <p class="txt">阿里巴巴创始人/慈善会会长/蚂蚁金善会</p>
            </div>
            <!-- <button type="button" class="btnEdit">编辑</button> -->
          </div>
          <template #right>
            <button type="button" class="del">移除</button>
          </template>
        </van-swipe-cell>
      </div>
    </div>
  </div>
</template>

<script>
import { SwipeCell } from "vant";
export default {
  name: "",
  components: {
    vanSwipeCell: SwipeCell
  },
  props: {},
  data: function() {
    return {
      isCreater: true
    };
  },
  mounted: function() {},
  methods: {}
};
</script>

<style scoped>
.member .title {
  width: 7.1rem;
  margin: 0 auto;
  color: #666;
  font-size: 0.24rem;
  line-height: 0.66rem;
}
.member .list {
  width: 7.1rem;
  margin: 0 auto;
  padding-bottom: 0.6rem;
}
.member .list .del {
  display: block;
  width: 1.2rem;
  height: 1.42rem;
  background-color: #c93a09;
  border-radius: 0.1rem;
  font-size: 0.28rem;
  color: #ffffff;
}
.member .list .item {
  width: 100%;
  height: 1.42rem;
  border-radius: 0.2rem;
  background-color: #32303a;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
}
.member .list .item .head {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  margin: 0 0.2rem 0 0.3rem;
  background-color: #fff;
  border: solid 1px rgba(255, 255, 255, 0.3);
  object-fit: cover;
}
.member .list .item .cont {
  width: 4.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.member .list .item .cont .name {
  font-size: 0.32rem;
  font-weight: bold;
  color: #ffffff;
  line-height: 0.48rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 4.2rem;
}
.member .list .item .cont .txt {
  font-size: 0.24rem;
  color: #fff;
  opacity: 0.7;
  line-height: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 4.2rem;
}
.member .list .item .btnEdit {
  display: block;
  width: 0.9rem;
  height: 0.48rem;
  background-color: #2a2631;
  border-radius: 0.06rem;
  font-size: 0.24rem;
  color: #999999;
  line-height: 0.48rem;
}
</style>
